package cn.wang.aop;

import org.aspectj.lang.JoinPoint;

import java.util.logging.Logger;

public class ErrorLoger {
    private static final Logger log = Logger.getLogger(String.valueOf(ErrorLoger.class));
    public void afterThrowing(JoinPoint jp,RuntimeException e){
        log.info(jp.getSignature().getName()+"方法发生异常"+e);
    }
}
